#include<stdio.h>
struct student
{
	char ID[50];
	char name[50];
	int chinese;
	int math;
	double ave;
};
double ave(struct student *test)
{
	double result;
	int sum=0;
	sum=test->chinese+test->math;
	result=sum/2.0;
	return result;
}
int main ()
{
	struct student s1;
	struct student s2;
	struct student s3;
	scanf("%d",&s1.ID);
	getchar();
	scanf("%s",&s1.name);
	getchar();
	scanf("%d",&s1.chinese);
	getchar();
	scanf("%d",&s1.math);
	getchar();
	scanf("%d",&s2.ID);
	getchar();
	scanf("%s",&s2.name);
	getchar();
	scanf("%d",&s2.chinese);
	getchar();
	scanf("%d",&s2.math);
	getchar();
	scanf("%d",&s3.ID);
	getchar();
	scanf("%s",&s3.name);
	getchar();
	scanf("%d",&s3.chinese);
	getchar();
	scanf("%d",&s3.math);
	printf("ave[0]=%.1lf\n",ave(&s1));
	printf("ave[1]=%.1lf\n",ave(&s2));
	printf("ave[2]=%.1lf\n",ave(&s3));
	return 0;
}
